﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entity.Framework;


namespace Business.Operations
{
    public class NotAnlamOperation
    {
        private static HPDMASEntities db = new HPDMASEntities();

        public NotAnlamOperation()
        {

        }

        public static List<NotAnlam> NotAnlamGetAll()
        {
            var notAnlamListesi = db.NotAnlam.ToList();
            return notAnlamListesi;
        }

        public static NotAnlam NotAnlamGetByNotAnlamId(int notAnlamId)
        {
            var notAnlam = (from c in db.NotAnlam where c.NotAnlamID == notAnlamId select c).First();
            return notAnlam;
        }
    }
}
